/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package AbstractFactory;

/**
 *  Permet de parser un chemin Linux
 * @author David
 */
public class ParseFileNameLinux implements FileNameParser{
    
    String s;
    public ParseFileNameLinux(String s){
      this.s =s ;  
    }
    
    @Override
    public void parse(){
        int index = s.lastIndexOf("/" ) ;
        String r = s.substring( index+1) ;
        System.out.println(r) ;
    }
}
